package cn.temp

import android.view.View
import android.widget.Toast

/**
 *
 */
class MainActivity : BaseActivity() {

    override fun createButton(list: MutableList<ButtonInfo>) {
        btn_1(list)
    }

    private fun btn_1(list: MutableList<ButtonInfo>) {
        val buttonInfo = ButtonInfo(Exception().stackTrace[0].methodName) { v: View? ->
            Toast.makeText(this, "hello", Toast.LENGTH_SHORT).show()
        }
        list.add(buttonInfo)
    }
}